/*    */ package com.chw.admin.finishedGoods;
/*    */ 
/*    */ import com.chw.annotation.PermissionSecurity;
/*    */ import com.chw.common.ServiceData;
/*    */ import com.chw.common.ServiceData.RetCode;
/*    */ import com.github.pagehelper.PageInfo;
/*    */ import javax.servlet.http.HttpServletRequest;
/*    */ import org.springframework.beans.factory.annotation.Autowired;
/*    */ import org.springframework.stereotype.Controller;
/*    */ import org.springframework.web.bind.annotation.RequestMapping;
/*    */ import org.springframework.web.bind.annotation.ResponseBody;
/*    */ 
/*    */ @Controller
/*    */ @RequestMapping({"/finishedGoods"})
/*    */ public class ChwFinishedGoodsController
/*    */ {
/*    */ 
/*    */   @Autowired
/*    */   private IChwFinishedGoodsService chwFinishedGoodsService;
/*    */ 
/*    */   @RequestMapping(value={"/finishedGoods.do"}, method={org.springframework.web.bind.annotation.RequestMethod.POST}, consumes={"*/*"}, produces={"application/json"})
/*    */   @ResponseBody
/*    */   @PermissionSecurity(name="查询", module="物料信息", btnfunc="chw_finished_goods")
/*    */   public ServiceData find(HttpServletRequest request, ChwFinishedGoods chwFinishedGoods, Integer currentPage, Integer pageSize)
/*    */     throws Exception
/*    */   {
/* 30 */     ServiceData ret = new ServiceData();
/*    */ 
/* 32 */     PageInfo chw = this.chwFinishedGoodsService.find(chwFinishedGoods, currentPage, pageSize);
/* 33 */     ret.setCode(request, ServiceData.RetCode.Success);
/* 34 */     ret.setBo(chw);
/* 35 */     return ret;
/*    */   }
/*    */ }

/* Location:           E:\chenya\haha\admin java\finishedGoods\
 * Qualified Name:     com.chw.admin.finishedGoods.ChwFinishedGoodsController
 * JD-Core Version:    0.6.0
 */